package com.learn.hibernatevalidator.chapter10;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

/**
 * @author: liyf
 * @create: 2025-01-24 16:09
 **/
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {})
@Documented
public @interface ValidCar {

    String message() default "{org.hibernate.validator.referenceguide.chapter08.ValidCar.message}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
